myApp.config(function($stateProvider, $urlRouterProvider) {
    $stateProvider
        .state('home', {
            url: "/home",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='党建首页'
                }
            },
            templateUrl: 'js/components/home/home.html',
            controller:'home'
        })
        .state('technology', {
            url: "/technology",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='党建动态'
                }
            },
            templateUrl: 'js/components/technology/index.html'
        })
        .state('programme', {
            url: "/programme",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='党建专题'
                }
            },
            templateUrl: 'js/components/programme/index.html'
        })
        .state('model', {
            url: "/model",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='先进典型'
                }
            },
            templateUrl: 'js/components/model/index.html',
            controller:'model'
        })
        .state('exchange', {
            url: "/exchange",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='经验交流'
                }
            },
            templateUrl: 'js/components/exchange/index.html',
            controller:'exchange'
        })
        .state('bazaar', {
            url: "/bazaar",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='人才市场'
                }
            },
            templateUrl: 'js/components/bazaar/index.html',
            controller:'bazaar'
        })
        .state('room', {
            url: "/room",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='党建工作室'
                }
            },
            templateUrl: 'js/components/room/index.html',
            controller:'room'
        })
        .state('school', {
            url: "/school",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='非公党校'
                }
            },
            templateUrl: 'js/components/school/index.html',
            controller:'school'
        })
        .state('details', {
            url: "/details",
            resolve:{
                init: function ($rootScope) {
                    $rootScope.rootRouterTitle='文章详情'
                }
            },
            templateUrl: 'js/components/details/index.html',
            controller:'details'
        })
});